import axios from './request'

export function fetchCreditReportList(query) {
  return axios({
    url: '/credit/reports',
    method: 'get',
    params: query
  })
}

export function fetchAllCreditReportList(query) {
  return axios({
    url: '/credit/allreports',
    method: 'get',
    params: query
  })
}

export function fetchRoleNameList() {
  return axios({
    url: '/credit/report/filter',
    method: 'get'
  })
}

export function fetchModelResultVarList(query) {
  return axios({
    url: '/credit/result',
    method: 'get',
    params: query
  })
}

export function fetchExpertResultVarList(query) {
  return axios({
    url: '/credit/var',
    method: 'get',
    params: query
  })
}
export function fetchVarRuleList(query) {
  return axios({
    url: '/credit/statistic',
    method: 'get',
    params: query
  })
}
export function fetchVarTableList(query) {
  return axios({
    url: '/credit/dim',
    method: 'get',
    params: query
  })
}
export function fetchSuggestResultList(query) {
  return axios({
    url: '/credit/suggest',
    method: 'get',
    params: query
  })
}

export function fetchApiCall(query) {
  return axios({
    url: '/api/call',
    method: 'get',
    params: query
  })
}

export function fetchVarClassList(query) {
  return axios({
    url: 'credit/var/filter',
    method: 'get',
    params: query
  })
}

export function fetchMonthScoretList(query) {
  return axios({
    url: 'credit/score/pies',
    method: 'get',
    params: query
  })
}

export function fetchMonthSuggesttList(query) {
  return axios({
    url: 'credit/score/bars',
    method: 'get',
    params: query
  })
}

export function fetchMonthNum(query) {
  return axios({
    url: '/credit/score/lines',
    method: 'get',
    params: query
  })
}

// 首页-当前月份无数据下拉框不显示月份
export function filterMonth() {
  return axios({
    url: '/credit/score/filter',
    method: 'get'
  })
}

